import axios from "axios";

const config = {
    method: 'get',
    url: 'https://api.ipify.org/',
    headers: {
        'User-Agent': 'Apifox/1.0.0 (https://apifox.com)',
        'Accept': '*/*',
        'Host': 'api.ipify.org',
        'Connection': 'keep-alive'
    }
};

axios(config)
    .then(function (response) {
        console.log(JSON.stringify(response.data));
    })
    .catch(function (error) {
        console.log(error);
    });